package com.sky.mapper;

import com.sky.entity.SetmealDish;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
*@author: 夏帮连
*@date: 2025/06/12
*@description: 
*@version: 1.0
 * 
*/
@Mapper
public interface SetMealDishMapper {
    List<Long> getSetmealIdByDishIds(List<Long> ids);
    @Select("select * from setmeal_dish where setmeal_id=#{id}")
    List<SetmealDish> getBySetmealId(Long id);
    @Delete("delete from setmeal_dish where setmeal_id=#{id}")
    void deleteBySetmealId(Long id);

    void insertBatch(List<SetmealDish> setmealDishes);
}
